@echo off
cd c:\temp
rmdir /q /s eben-build
path=%PATH%;D:\android-sdk-windows\tools
path=%PATH%;C:\Program Files\SlikSvn\bin
echo svn checkout...
svn checkout http://eben.googlecode.com/svn/trunk/ eben-build
cd C:\temp\eben-build\EBEN
echo updating project and testproject...
call android update project --path .
call android update test-project -m c:\temp\eben-build\EBEN -p c:\temp\eben-build\EBENTest
echo run testing...
cd c:\temp\eben-build\EBENTest
call ant run-tests > androidTestLog.log
call ant coverage > coverageLog.log
echo run releasing...
cd c:\temp\eben-build\EBEN
call ant release
cd bin
echo Signing...
call jarsigner -keystore "C:\Users\Jacob\Documents\Kurser Chalmers\Android Eben\builddoc\signeben.keystore" -storepass XXXX -keypass XXXX MainMenuActivity-unsigned.apk jake
call jarsigner -verify -verbose -certs MainMenuActivity-unsigned.apk > signingLog.log
echo aligning...
call zipalign 4 MainMenuActivity-unsigned.apk eben-zipalig.apk
call zipalign -c -v 4 eben-zipalig.apk > zipingLog.log
cd "C:\Users\Jacob\Dropbox\Androidprojekt - EBEN\EBEN Build results"
echo off
rmdir /q /s Logs
rmdir /q /s Coverage
MD Logs
echo copying files to dropbox...
cd c:\temp\eben-build\EBENTest
copy androidTestLog.log "C:\Users\Jacob\Dropbox\Androidprojekt - EBEN\EBEN Build results\Logs\androidTestLog.log"
copy coverageLog.log "C:\Users\Jacob\Dropbox\Androidprojekt - EBEN\EBEN Build results\Logs\coverageLog.log"
move coverage "C:\Users\Jacob\Dropbox\Androidprojekt - EBEN\EBEN Build results"
cd c:\temp\eben-build\EBEN\bin
copy signingLog.log "C:\Users\Jacob\Dropbox\Androidprojekt - EBEN\EBEN Build results\Logs\signingLog.log"
copy zipingLog.log "C:\Users\Jacob\Dropbox\Androidprojekt - EBEN\EBEN Build results\Logs\zipingLog.log"
copy MainMenuActivity-unsigned.apk "C:\Users\Jacob\Dropbox\Androidprojekt - EBEN\EBEN Build results\EBEN.apk"